package com.fit.piris.dao.message.priority;

import java.util.List;

import org.apache.tapestry5.hibernate.annotations.CommitAfter;

import com.fit.piris.entities.message.priority.MessagePriority;

public interface MessagePriorityDAO {
	@CommitAfter
	public boolean save(MessagePriority newMessagePriority);

	@CommitAfter
	public boolean delete(MessagePriority messagePriority);

	@CommitAfter
	public boolean update(MessagePriority messagePriority);

	public List<MessagePriority> findAll();

	public MessagePriority findByID(Long id);

	@CommitAfter
	public boolean deleteByID(Long id);
}
